//--build:functionAround--
Function.prototype.around = function (n) {
    var _this = this,
        wrapped = function () {
            var result = null;
            try {
                console.time(n);
                if (arguments)
                    result = _this.apply(this, arguments);
                else
                    result = _this.apply(this);
                console.timeEnd(n);
            } catch (e) {
                console.log(e.stack);
                throw e;
            }
            return result;
        };

    wrapped.__fn__ = this;

    return wrapped;
};
//--endbuild--